package com.miao.im.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.TimeUnit;

/**
 * @Auther: miaoguoxin
 * @Date: 2021/2/24 17:23
 * @Description:
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "netty")
public class NettyProperties {

    private int port;

    private long heartBeatTime = 10 * 1000;

    private long readBeatTime = 10 * 1000;

    private long writeHeartBeatTime = 10 * 1000;

    private TimeUnit heartBeatTimeUnit = TimeUnit.MILLISECONDS;

}
